import { RouteRecordRaw } from 'vue-router';
import { ContainerLayout } from '@/router/constant';
import { SettingOutlined } from '@vicons/antd';
import { renderIcon } from '@/utils';

const routeName = 'UserCenter';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/userCenter',
    name: routeName,
    redirect: '/userCenter/index',
    component: ContainerLayout,
    meta: {
      title: '用户中心',
      sort: 71,
      hidden: true,
    },
    children: [
      {
        path: 'index',
        name: `${routeName}_index`,
        meta: {
          title: '用户中心',
        },
        component: () => import('@/views/userCenter/index.vue'),
      },
    ],
  },
];

export default routes;
